package edu.cuit.jead.mynetdisk.common;

public enum Code {
    WRONG_EMAIL_OR_PASSWORD(10001,"账号或密码错误"),
    USED_USERNAME(10002,"用户名已存在"),
    USED_EMAIL(10003,"邮箱已存在"),
    REGISTER_SUCCESS(10004,"注册成功"),
    FILE_EXIST(10005,"文件已存在"),
    FILE_NOT_EXIST(10006,"文件不存在"),
    DONWLOAD_SUCCESS(10007,"下载成功"),
    SIZE_OUT(10008,"云盘空间不足");

    private int code ;
    private String msg ;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    Code(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
